#include "CRL_IndexBufferDescriptor.h"
#include "CBL_Debug.h"

CB_SUBNAMESPACE_START(RenderLib)

#define ENUM_ITEM(_Name, _Size, _OpenGLFormat, _D3D9Format, _D3D10Format) _Size,
uint32 CIndexBufferDescriptor::s_IndexFormatSizeByte[CIndexBufferDescriptor::NumIndexFormats] = 
{
	0,
	#include "CRL_IndexFormatsEnum.h"
};
#undef ENUM_ITEM

// -------------------------------------------------------------------------------------------

#define ENUM_ITEM(_Name, _Size, _OpenGLFormat, _D3D9Format, _D3D10Format) #_Name,
const char* CIndexBufferDescriptor::s_IndexFormatNames[CIndexBufferDescriptor::NumIndexFormats] =
{
	"Unused",
	#include "CRL_IndexFormatsEnum.h"
};
#undef ENUM_ITEM


// -------------------------------------------------------------------------------------------

CIndexBufferDescriptor::CIndexBufferDescriptor()
: m_IndexFormat(NotIndexed)
, m_StorageType(ManagedStorage)
, m_IndexCount(0)
{
}

CB_SUBNAMESPACE_END